package com.whyt.oauth.consumer.service;

import com.whyt.oauth.consumer.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author ASUS
 */
@FeignClient(name = "security-provider", configuration = FeignConfig.class)
public interface ProviderService
{
    /**
     * XX
     * @param name
     * @return
     */
    @GetMapping("/sayHello")
    String sayHello(@RequestParam("name") String name);
}
